﻿

function mnipotent(options){
	if(!options.w) options.w=700;
	if(!options.h) options.h=500;
	art.dialog.open(encodeURI(options.linkurl),{title:options.title,lock:true,width:options.w,height:options.h,
		ok:options.sucfun,
		cancel: true
	});
} 

function closedialog(dofunction){
	var list = art.dialog.list;
	for (var i in list) {
	    list[i].close();
	};
	if(dofunction){
		$('#mainiframe').contents()[0].location.reload(true);//整张页面刷新
	}
}
